﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace 女友管理系统2
{
    public partial class Form2 : Form
    {
        string str;

        public Form2()
        {
            InitializeComponent();
        }

        public Form2(string name, string date, string intere)
        {
            InitializeComponent();
            textBox1.Text = name;
            dateTimePicker1.Value = Convert.ToDateTime(date);
            comboBox1.Text = intere;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            str = textBox1.Text +" "+ dateTimePicker1.Value.Date.ToLongDateString() +" "+ comboBox1.Text;
            this.Close();
        }

        public string add
        {
            get
            {
                return str;
            }
        }
    }
}
